package mainServer;


import interaction.IRmiServer;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;


public class RmiServerImpl extends UnicastRemoteObject implements Remote, IRmiServer
{
  private static final long serialVersionUID = 1L;
  private RmiServer m_rmiServer;
  
  protected RmiServerImpl(RmiServer rmiServer) throws RemoteException
  {
    super();
    m_rmiServer = rmiServer;
  }

  @Override
  public Integer connect() throws RemoteException
  {
    return m_rmiServer.connect();
  }

  @Override
  public void disconnect(Integer disconn) throws RemoteException
  {
    m_rmiServer.disConnect(disconn);
  }

  
}
